import request from '@/utils/request'

//查询工厂报警数量统计
export function deptAlarm(query) {
  return request({
    url: '/oil/statistic/deptAlarm',
    method: 'get',
    params: query
  })
}

 //查询各级报警数量统计
export function alarmCount(query) {
    return request({
      url: '/oil/statistic/alarmCount',
      method: 'get',
      params: query
    })
  }

//查询设备报警数量统计
 export function deviceAlarm(query) {
    return request({
      url: '/oil/statistic/deviceAlarm',
      method: 'get',
      params: query
    })
  }

//工厂设备数量排名
export function deptDevice() {
    return request({
      url: '/oil/statistic/deptDevice',
      method: 'get'
    })
  }

//在线与离线设备数量统计
export function runningCount() {
    return request({
      url: '/oil/statistic/runningCount',
      method: 'get'
    })
  }

//监测指标报警数量统计
export function variableAlarm(query) {
    return request({
      url: '/oil/statistic/variableAlarm',
      method: 'get',
      params: query
    })
}

//所有设备数量统计
export function deviceTotal() {
  return request({
    url: '/oil/statistic/deviceTotal',
    method: 'get'
  })
}

//在线与离线设备数量统计
export function deptTotal() {
  return request({
    url: '/oil/statistic/deptTotal',
    method: 'get'
  })
}
